package com.tongji.diy.view.component2D
{
	import flash.geom.Point;
	
	/**
	 * 
	 * @author xxj
	 * 
	 */

	public class OriginalRoom
	{
		public var  roomShapePoints:Vector.<Point> = new Vector.<Point>;
		public function OriginalRoom(index:uint)
		{
			switch (index)
			{
				case 0:
					roomShapePoints.push(new Point(-400, 400));
					roomShapePoints.push(new Point(400, 400));
					roomShapePoints.push(new Point(400, -400));
					roomShapePoints.push(new Point(-400, -400));
					break;
				case 1:
					roomShapePoints.push(new Point(-400, 400));
					roomShapePoints.push(new Point(0, 400));
					roomShapePoints.push(new Point(0, 0));
					roomShapePoints.push(new Point(400, 0));
					roomShapePoints.push(new Point(400, -400));
					roomShapePoints.push(new Point(-400, -400));
					break;
				
				case 2:
					roomShapePoints.push(new Point(-400, 400));
					roomShapePoints.push(new Point(400, 400));
					roomShapePoints.push(new Point(400, -400));
					break;
				case 3:
					roomShapePoints.push(new Point(-400, 400));
					roomShapePoints.push(new Point(400, -400));
					roomShapePoints.push(new Point(-400, -400));
					break;
				case 4:
					for (var i:uint = 0; i<30; i++)
					{
						roomShapePoints.push(new Point(-400*Math.cos(i/30*Math.PI*2), 400*Math.sin(i/30*Math.PI*2)));
					}
					break;
				case 5:
					roomShapePoints.push(new Point(1300, 400));
					roomShapePoints.push(new Point(300, -500));	
					roomShapePoints.push(new Point(-1500, -800));
					roomShapePoints.push(new Point(-700, 900));
									
					break;
				case 6:
					roomShapePoints.push(new Point(400, 0));
					roomShapePoints.push(new Point(0, -400));	
					roomShapePoints.push(new Point(-400, 0));
					roomShapePoints.push(new Point(0, 300));
					roomShapePoints.push(new Point(-50, 200));
					break;
				case 7:
					roomShapePoints.push(new Point(-600, 600));
					roomShapePoints.push(new Point(600, -600));
					roomShapePoints.push(new Point(-600, -600));
					break;
			}
		}
	}
}